<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>test click</title>
		<script type="text/javascript" src="../js/jquery-3.3.1.slim.min.js"></script>
		<link type="text/css" href="../css/bootstrap.min.css" rel="stylesheet" />
	</head>
	<body>
		<a href="../img/logo.png" class="btn btn-danger" target="_blank" download="download" id="testAId">AAAAA</a><br />
		<button onclick="testBBB()">BB</button>
		<button onclick="testBBB()" class="btn btn-danger" href="../img/logo.png" target="_blank" download="download">cc</button>
	</body>
	<script type="text/javascript">
		function testAAA() {
			alert('aaa is clicked');
		}
		function testBBB() {
			console.log('first is bbb');
			document.getElementById("testAId").click();
		}
	</script>
</html>
